class Person:
    city = '北京'

    def __init__(self,name,age,hobby,app):
        self.name = name
        self.age = age
        self.hobby = hobby
        self.app = app

    @staticmethod
    def printMenu():
        print('-----个人信息-----')

    def printInfo(self):
        print('居住城市{}'.format(Person.city))
        print('姓名：{}'.format(self.name))
        print('年龄：{}'.format(self.age))
        print('爱好：{}'.format(self.hobby))
        print('常用App：{}'.format(self.app))

person1 = Person('张三','23','跑步','抖音')
Person.printMenu()
person1.printInfo()
# person1.printMenu()
# person1.printInfo()
print('-------------------------------------------------------')
Person.city='上海'
person1 = Person('赵四','22','游泳','淘宝')
person1.printMenu()
person1.printInfo()

